<html>
    <head>
        <title>Bundles List</title>
        <#include "/web/common/meta.ftl"/>
        <SCRIPT LANGUAGE="JavaScript">
		<!--
			$(document).ready(function(){
				$("#name").focus();
				$('#btSave').click(function() {
					$.ajax({
							type    : 'post',
							url     : '<@s.url namespace="/app/dstest" action="Order!save" includeParams="none"/>',
							data    : $('#orderForm').serialize(),
							success : function(data) {	
								if(data) {
									if(data.result == 'success') {
										topAlert('提示信息', '保存成功');					
										refreshAppIframe('orderGrid', 'datagrid', '${menuId}');	
										closeTopWin('orderInput');										
									}else {
										topAlert('错误信息', '保存失败');
									}
								}else {
									topAlert('错误信息', '保存失败');
								}
							},
							error   : function() {
								topAlert('错误信息', '保存失败');
							}
						});		
				});	
				
				$('#btReturn').click(function() {
					closeTopWin('orderInput');
				});				
			});	
		//-->
		</SCRIPT>
</head>
    
<body class="page">
<form id="orderForm" name="orderForm" action="<@s.url namespace="/app/dstest" action="Order!save" includeParams="none"/>" method="post">
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
		<tr>
		<td class="formPanel">
			<table border="0" cellspacing="0" cellpadding="0" width="100%">	
				<tr>
					<td width="25%"><span class="requiredMark">※</span>订单ID：</td>
					<td>
					<input type="text" name="order.id" maxlength="25" size="50" value="${(order.id)?default("")}" style="width:310px"/> 
					</td>
				</tr>
				<tr>
					<td width="25%"><span class="requiredMark">※</span>客户ID：</td>
					<td>
					<input type="text" name="customer.id" maxlength="25" size="50" value="${(customer.id)?default("")}" style="width:310px"/> 
					</td>
				</tr>
				<tr>
					<td width="25%"><span class="requiredMark">※</span>客户姓名：</td>
					<td>
					<input type="text" name="customer.name" maxlength="25" size="50" value="${customer.name}" style="width:310px"/> 
					</td>
				</tr>
				<tr>
					<td width="25%"><span class="requiredMark">※</span>产品编号：</td>
					<td>
					<input type="text" name="order.productId" maxlength="25" size="50" value="${order.productId}" style="width:310px"/> 
					</td>
				</tr>
				<tr>
					<td width="25%"><span class="requiredMark">※</span>客户性别：</td>
					<td>
					<input type="text" name="customer.sex" maxlength="25" size="50" value="${customer.sex}" style="width:310px"/> 
					</td>
				</tr>
				<tr>
					<td width="25%"><span class="requiredMark">※</span>联系电话：</td>
					<td>
					<input type="text" name="customer.mobile" maxlength="25" size="50" value="${customer.mobile}" style="width:310px"/> 
					</td>
				</tr>
				<tr>
					<td width="25%"><span class="requiredMark">※</span>通讯地址：</td>
					<td>
					<input type="text" name="customer.address" maxlength="25" size="50" value="${customer.address}" style="width:310px"/> 
					</td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				align="center">
				<tr>
				<td><div class="formLine"></div></td>
				</tr>
				<tr>
					<td height="30" class="formbutton">
					<input type="button" name="btSave" id="btSave" value="保　存"/>&nbsp;
					<input type="button" name="btReturn" id="btReturn" value="返　回"/>
					</td>
				</tr>
			</table>
		</td>
		</tr>
	</table>
	</form>
</body>
</html>
